package com.Day1008;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class StudentText3 {
    public static void main(String[] args) {
        Student student1 = new Student("张三",Gender.Male,18);
        Student student2 = new Student("李四",Gender.Male,20);
        Student student3 = new Student("王梅",Gender.FeMale,17);
        Map<String,Student> map = new HashMap<>();
        map.put("zhangsan",student1);
        map.put("lisi",student2);
        map.put("wangmei",student3);
        Set keySet = map.keySet();
        for (Object key : keySet) {
            System.out.println("英文名：" + key);
            System.out.println(map.get(key));
        }
    }
}
